package router

import (
	v1 "gin-vue-admin/api/v1"

	"github.com/gin-gonic/gin"
)

func InitEnvironmentRouter(Router *gin.RouterGroup) {
	EnvironmentRouter := Router.Group("environment")
	// EnvironmentRouter := Router.Group("environment").Use(middleware.JWTAuth()).Use(middleware.CasbinHandler()).Use(middleware.OperationRecord())
	{
		EnvironmentRouter.POST("createEnvironment", v1.CreateEnvironment)             // 新建Environment
		EnvironmentRouter.DELETE("deleteEnvironment", v1.DeleteEnvironment)           // 删除Environment
		EnvironmentRouter.DELETE("deleteEnvironmentByIds", v1.DeleteEnvironmentByIds) // 批量删除Environment
		EnvironmentRouter.PUT("updateEnvironment", v1.UpdateEnvironment)              // 更新Environment
		EnvironmentRouter.GET("findEnvironment", v1.FindEnvironment)                  // 根据ID获取Environment
		EnvironmentRouter.GET("getEnvironmentList", v1.GetEnvironmentList)            // 获取Environment列表
	}
}
